package com.hongying.consumer;

import com.hongying.constant.RabbitMqConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = RabbitMqConstant.YMQ)
@Slf4j
public class TopicReceiver3 {

    @RabbitHandler
    public void process(String message){



        Thread thread =  new Thread();
        thread.setContextClassLoader(null);
        log.info("TopicReceiver3:{}",message);
    }


}
